function searchByOnline(state){
	window.location.href = "/wgcloud/portInfo/list?state="+state;
}

function add() {
	window.location.href = "/wgcloud/portInfo/edit";
}

function addBatch() {
	window.location.href = "/wgcloud/portInfo/editBatch";
}


function edit(id){
	window.location.href = "/wgcloud/portInfo/edit?id="+id;
}

function del(id) {
	if(confirm('你确定要删除吗？')) {
		window.location.href = "/wgcloud/portInfo/del?id=" + id;
	}
}


function cancel(){
	history.back();
}
